const { Sequelize, Op, Model, DataTypes, QueryTypes } = require('sequelize');

const sequelize = new Sequelize(
  config.mysql.database,
  config.mysql.user,
  config.mysql.password,
  {
    dialect: 'mysql',
    host: config.mysql.host,
    port: config.mysql.port,
    ...config.sequelize,
  },
);

module.exports = {
  Sequelize, sequelize, Op, Model, DataTypes, QueryTypes,
};
